<!--顶部-->
<!--<script type="text/javascript">
    $(function() {
        var match = document.cookie.match(new RegExp('color=([^;]+)'));
        if(match) var color = match[1];
        if(color) {
            $('body').removeClass(function (index, css) {
                return (css.match (/\btheme-\S+/g) || []).join(' ')
            })
            $('body').addClass('theme-' + color);
        }

        $('[data-popover="true"]').popover({html: true});
        
    });
</script>-->
<style type="text/css">
    #line-chart {
        height:300px;
        width:800px;
        margin: 0px auto;
        margin-top: 1em;
    }
    .navbar-default .navbar-brand, .navbar-default .navbar-brand:hover { 
        color: #fff;
    }
    
	.inner_nav {
	width: 100%;
	}
	.inner_nav ul {
		width: 100%;
		height: 24px;
		border-bottom: 4px solid #1466b9;
	}
	.inner_nav ul li {
		height: 24px;
		float: left;
		padding: 0 12px;
		margin: 0 22px;
	}	
	.navbar-nav > li > a {
		font-size: 12px;
	}
	/*.inner_nav ul li a {
		color:#333;
		font-size: 24px;
		display: block;
	}*/
	.layout-panel.layout-panel-north{overflow: visible;}
	

</style>

<script type="text/javascript">
    $(function() {
        var uls = $('.sidebar-nav > ul > *').clone();
        uls.addClass('visible-xs');
        $('#main-menu').append(uls.clone());
    });
</script>
<div class="" data-options="region:'north',border:false">
	<div class="navbar navbar-default navbar2 navbars" role="navigation">
	    <div class="navbar-header">
	      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
	        <span class="sr-only">Toggle navigation</span>
	        <span class="icon-bar"></span>
	        <span class="icon-bar"></span>
	        <span class="icon-bar"></span>
	      </button>
	      <a @if(auth::user()->role_id != 22) href="{{url('admin/index/home')}}"@else href="{{url('admin/index')}}" @endif class="navbar-top"><span class="navbar-brand  navba r-brand1"></span><span class="navbar-brand2">
	     	<strong>@if(auth::user()->role_id != 22)公安内保工作综合信息管理平台@else互联网内保单位管理服务平台@endif</strong>
	        </span>
	      </a>
	    </div>
		<div class="navbar-collapse collapse" style="height: 1px;">
			<ul id="main-menu" class="nav navbar-nav navbar-right">
				{{--<li id="msg">
					<a href="javascript:">
						<span class="badge badge-danger">{{$wdxx_num}}</span>
						<i class="fa fa-envelope" style="font-size:18px"></i>
					</a>
				</li>--}}
				<li><a href="javascript:history.go(-1);" class="back_p">
					<span class="icon_back"></span>返回
				</a></li>
				<li>
					<a href="{{url('admin/user/edit_pwd',Auth::user()->id)}}" class="dropdown-toggle" >
						<span class="glyphicon glyphicon-user padding-right-small" style="position:relative;top: 1px;"></span>您好,<span>{{ Auth::user()->name }}&nbsp;&nbsp;@if(Auth::user()->role_id != '')所在权限组：{{getValue(Auth::user()->role_id,'roles','id','name')}}@endif</span>
					</a>
				</li>
				{{--<li><a href="{{ URL('/basic') }}" class="dropdown-toggle" ><span class="glyphicon glyphicon-cog" style="position:relative;top: 2px;right: 2px;"></span>网站设置</a></li>--}}
				<li><a tabindex="-1" style="color: #fff" href="{{ route('logout') }}" class="btn btn-danger btn-pad " onclick="event.preventDefault();document.getElementById('logout-form').submit();">退出</a></li>
				<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
					{{ csrf_field() }}
				</form>
			</ul>
		</div>
	</div>

	@if(auth::user()->role_id != 22)
	<nav class="navbar navbar-primary navbar3" role="navigation">
		<div class="container-fluid">
			<div class="main_menu">
				<ul class="nav navbar-nav nav_erji">
					@if(isset($menu1))
						@foreach($menu1 as $v)
							<li>
								<a href="javascript:" class="dropdown-toggle">
									{{$v->name}}
									<b class="caret"></b>
								</a>
								<ul class="dropdown-menu">
									@foreach($menu2 as $vv)
										@if($vv->cid==$v->id)
											<li @if($action == $vv->path) class="active" @endif><a href="{{url($vv->rules)}}" @if($vv->target == 1)target="_blank"@endif>{{$vv->name}}</a></li>
										@endif
									@endforeach
								</ul>
							</li>
						@endforeach
					@endif
		
				</ul>
			</div>
		</div>
	</nav>
	@endif
</div>
<script>
	$(function () {
		$(".nav_erji").each(function () {
			$(this).children('li').mouseover(function(){
				$(this).addClass('open');
			})
			$(this).children('li').mouseleave(function(){
				$(this).removeClass('open');
			})
		})
	})
</script>